package frame.service.standard;

import frame.service.anno.MiayActionParam;
import org.springframework.http.HttpHeaders;

import static frame.service.standard.Constants.*;

public abstract class MiayCommonRequestParams {
    private byte[] sourceBytes;
    private HttpHeaders httpHeaders;
    private String httpMethod;
    private String queryString;
    private String safeMode;
    private String module;
    private String service;
    private String action;
    private String version;

    public MiayCommonRequestParams(){}

    public byte[] getSourceBytes() {
        return sourceBytes;
    }
    @MiayActionParam(value = REQUEST_BODY_BYTE, ignore = true)
    public void setSourceBytes(byte[] sourceBytes) {
        this.sourceBytes = sourceBytes;
    }

    public HttpHeaders getHttpHeaders() {
        return httpHeaders;
    }
    @MiayActionParam(value = REQUEST_HEADERS, ignore = true)
    public void setHttpHeaders(HttpHeaders httpHeaders) {
        this.httpHeaders = httpHeaders;
    }

    public String getHttpMethod() {
        return httpMethod;
    }
    @MiayActionParam(value = REQUEST_HTTP_METHOD, ignore=true)
    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }

    public String getQueryString() {
        return queryString;
    }
    @MiayActionParam(value = REQUEST_QUERY_STRING, ignore = true)
    public void setQueryString(String queryString) {
        this.queryString = queryString;
    }

    public String getSafeMode() {
        return safeMode;
    }
    @MiayActionParam(value = REQUEST_SAFE_MODE, ignore = true)
    public void setSafeMode(String safeMode) {
        this.safeMode = safeMode;
    }

    public String getModule() {
        return module;
    }
    @MiayActionParam(value = REQUEST_MODULE, ignore = true)
    public void setModule(String module) {
        this.module = module;
    }

    public String getService() {
        return service;
    }
    @MiayActionParam(value = REQUEST_SERVICE, ignore = true)
    public void setService(String service) {
        this.service = service;
    }

    public String getAction() {
        return action;
    }
    @MiayActionParam(value = REQUEST_ACTION, ignore = true)
    public void setAction(String action) {
        this.action = action;
    }

    public String getVersion() {
        return version;
    }
    @MiayActionParam(value = REQUEST_VERSION, ignore = true)
    public void setVersion(String version) {
        this.version = version;
    }
}
